package com.pig4cloud.pig.module.api.entity.commonInfo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 信息发布的图片对象 common_info_img
 *
 * @author ruoyi
 * @date 2022-06-20
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("common_info_img")
public class CommonInfoImg implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 信息id
     */
    private Long infoId;

    /**
     * 图片地址
     */
    private String imgUrl;

    /**
     * 图片类型
     */
    private String imgType;

    /**
     * 排序索引
     */
    private Integer sort;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
